<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>帮帮网-发布活动</title>
<link href="../CSS/formStyle.css" rel="stylesheet"  type="text/css" />
<script type="text/javascript" src="../JS/prototype.js"></script>
<script type="text/javascript" src="../JS/httpRequest.js"></script>
<script type="text/javascript" src="../JS/cookie.js"></script>
<script type="text/javascript" src="addActivity.js"></script>
<script type="text/javascript">
</script>
<style type="text/css">
body
{
	font:normal 14px 宋体;
}

#addActForm td
{
	padding:8px 5px;
	border-bottom:1px dotted #ccc;
}
.actForm
{
	border:1px solid #ccc; 
	padding:5px;
	filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#FFFFFF', endColorStr='#E4EEF9', gradientType='0');
}
.btn 
{
	padding:10px 25px;
	margin:0 25px 0 0;
	font-size:10pt;
	display:inline-block;
	cursor:pointer; 
	border:1px solid #4E90EE; 
	font-weight:bold;
	filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#E4EEF9', endColorStr='#4C96ED', gradientType='0');
    color:#333;
}
.insertPic
{
	position:absolute;
	left:120px; top:20px;
	border:1px solid #B9D0F2;
	background-color:#E4EEF9;
}

</style>
</head>

<body>
<div>帮帮网-发布活动</div>
<div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="20%">&nbsp;</td>
    <td>
    <table id="addActForm" width="100%" border="0" cellspacing="0" cellpadding="0" class="actForm">
  <tr>
    <td colspan="3"   style="border-bottom:0; padding-bottom:0">活动标题：</td>
    </tr>
  <tr>
    <td colspan="2"><textarea name="txtTitle" cols="80" rows="5" id="txtTitle" onblur="CheckEmpty(this,'warnTitle','活动标题不能为空！')" ></textarea></td>
    <td width="200" class="warning" id="warnTitle">&nbsp;*</td>
  </tr>
   <tr>
    <td width="150">活动封面：</td>
    <td width="400"><input id="txtCoverPic" type="text" value="7" /> </td>
    <td id="warnLastDays" class="warning">&nbsp;*</td>
  <tr>
    <td width="150">活动有效期：</td>
    <td width="400"><input id="txtLastDays" type="text" value="7"  onblur="CheckEmpty(this,'warnLastDays','活动有效期不能为空！')"/> 天</td>
    <td id="warnLastDays" class="warning">&nbsp;*</td>
  </tr>
  <tr>
    <td>最多参加人数：</td>
    <td><input id="txtMaxNum" value="100"  onblur="CheckEmpty(this,'warnMaxNum','活动最多参加人数不能为空！')"/>
      人</td>
    <td id="warnMaxNum" class="warning">&nbsp;*</td>
  </tr>
  <tr>
    <td colspan="3"  style="border-bottom:0; padding-bottom:0">活动说明：</td>
    </tr>
  <tr>
    <td colspan="2"><textarea id="txtDesc" rows="5" cols="80"></textarea></td>
    <td id="warnDesc" >&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3" style="border-bottom:0; padding-bottom:0">活动详细描述：
    <div style="text-align:center; position:relative;">
    <span onclick="showInsert()">插入图片</span>
    <table id="insertPic" class="insertPic" width="400px" border="0" cellspacing="0" cellpadding="0" style="display:none" >
  <tr>
    <td width="100px" >图片URL:</td>
    <td width="300px"><input id="picURL" type="text" width="280px;" /></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td align="center" width="80%">
      <input type="button" value="确定" onclick="InsertPic()" />&nbsp;&nbsp;
      <input type="button" value="取消" onclick="hideInsert()" />
    </td>
  </tr>
</table>
    </div></td>
    </tr>  
  <tr>
    <td colspan="2"><textarea id="txtDetail" rows="15" cols="80" onblur="CheckEmpty(this,'warnDetail','活动详细信息不能为空！')"></textarea></td>
    <td id="warnDetail" class="warning">&nbsp;*</td>
  </tr>
  <tr>
    <td>上传图片：</td>
    <td>
	<form id="uploadForm" action="upload_photo.php" method="post" enctype="multipart/form-data">
	<input id="pic" name="pic" type="file"  />
	</form>
	</td>
  </tr>
 
  <tr>
    <td  colspan="3" align="center" style="border-bottom:0">
      <span class="btn" onclick="AddActivity()" >发布活动</span>
      <span class="btn">取消</span>
      <a href="activity_view.htm"><span class="btn" >查看活动</span></a></td>
 </tr>  
</table>
    </td>
    <td width="20%">&nbsp;</td>
  </tr>
</table>



</div>
</body>
</html>
